//
// Created by DengLibin on 2018/12/8 0008.
//
//十进制转二进制
#include <stdio.h>
void toBin(int num)
{
    if (num != 0)
    {
        int m = num % 2;
        toBin(num / 2); ////先序递归
        printf("%d", m);
    }
}
int main6()
{
    toBin(10);
    return 0;
}
